<?php 
    require_once('inc/conn.php');
    $sql="UPDATE wangzhan SET
         insert_name='".$_POST['name']."',
         insert_dizhi='".$_POST['dizhi']."',
         insert_phone='".$_POST['phone']."',
         insert_QQ='".$_POST['QQ']."',
         insert_youqinglianjie='".$_POST['youqinglianjie']."',
         insert_URL='".$_POST['URL']."',
         insert_banquan='".$_POST['banquan']."' WHERE id='".$_GET['id']."'
         ";
         mysql_query($sql);
         echo "<script>alert('修改成功！');window.location.href='wangzhanlist.php';</script>";
        
mysql_close($conn);
 ?>